﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ProductCollector.Web.Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 159px;
        }

        .auto-style2 {
            width: 349px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table style="width: 100%">
                <tr>
                    <td>Site</td>
                    <td class="auto-style2">
                        <asp:DropDownList ID="m_lstSites" runat="server" AutoPostBack="True" OnSelectedIndexChanged="m_lstSites_SelectedIndexChanged" Width="321px">
                            <asp:ListItem>-- Select Site --</asp:ListItem>
                            <asp:ListItem>Aeiomed</asp:ListItem>
                            <asp:ListItem>BREAS</asp:ListItem>
                        </asp:DropDownList></td>
                    <td class="auto-style1">Category</td>
                    <td>
                        <asp:DropDownList ID="m_lstCategories" runat="server" Width="290px"></asp:DropDownList></td>
                </tr>
                <tr>
                    <td>Value</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="TextBox1" runat="server" Width="315px"></asp:TextBox></td>
                    <td class="auto-style1">&nbsp;</td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="Search" Width="138px" OnClick="Button1_Click" /></td>
                </tr>
            </table>
        </div>
        <div style="height: 300px">
            <h2>-------------------------------------------------------------Result----------------------------------------------</h2>
                <asp:DataList ID="DataList1" runat="server" repeatColumns="3">
                    <ItemTemplate>
                        <div class="productimage">
                            <a target="_blank" href="<%#Eval("OriginalUrl") %>">
                                <img src='<%#Eval("ThumbImg") %>' />
                            </a>
                        </div>

                        <div class="productdetails">

                            <div class="ProductListHead">
                                <%#Eval("ProductName")%>
                            </div>

                            <span class="ProductListItem">
                                <strong>Description:</strong>
                                <%# Eval("Description") %>
                            </span>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
        </div>
    </form>
</body>
</html>
